﻿using DevExpress.XtraGrid.Demos.util;
using DXApplicationTangche.UC.下单MTO.Service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.订单一览新.销售确认单
{
    public partial class Form客户一览带标签 : DevExpress.XtraEditors.XtraForm
    {
        private List<CustomerPersonaListDto> customerPersonaListDtos = new List<CustomerPersonaListDto>();
        public Form客户一览带标签()
        {
            InitializeComponent();
            this.customerPersonaListDtos = MTO订单Service.getCustomerPersonaListAll();
            this.gridControl客户一览.DataSource = this.customerPersonaListDtos;
            this.gridView客户一览.RefreshData();
        }

        private void 补充用户画像ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            String mobile = FunctionHelper.GetgridViewValue(this.gridView客户一览, this.gridView客户一览.FocusedRowHandle, "mobile");
            new Form补充客户标签(mobile).ShowDialog();
            this.gridView客户一览.RefreshData();
        }
    }
}
